package com.ynt.pay.user.api.rest;

import com.ynt.pay.user.api.config.FeignConfig;
import com.ynt.pay.user.api.dto.UserListDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * 用户服务
 *
 * @Author: ganbo
 * @Date: 2019/11/21 20:52
 */

@FeignClient(value = "user-api", configuration = FeignConfig.class)
@RequestMapping("/user")
public interface UserRemoteClient {

    @GetMapping("/list")
    List<UserListDto> list();

    @GetMapping("/hello")
    String hello();

}
